#include "fixedunit.h"

FixedUnit::FixedUnit() : Unit()
{
    init();
}

FixedUnit::FixedUnit(QRect &geometry)  : Unit(geometry)
{
    init();
}

FixedUnit::~FixedUnit() {}

QDateTime FixedUnit::getCreationTime() {return this->getCreationTime();}
int FixedUnit::getSecondsLasting() {return this->getSecondsLasting();}

void FixedUnit::setCreationTime(QDateTime time) {this->m_creationTime = time;}
void FixedUnit::setSecondsLasting(int seconds) {this->m_secondsLasting = seconds;}

void FixedUnit::init()
{
    setLives(1);
}

void FixedUnit::loadPixmaps()
{
    if(m_pixmaps.count() < 0) return;

    this->m_pixmaps.resize(1);
    this->m_pixmaps[0].resize(1);
    m_pixmaps[0][0].load("./sprites/" + m_sprite + ".png");
}


void FixedUnit::serializeDebug(QDebug &dbg)
{
    Unit::serializeDebug(dbg);
}

void FixedUnit::serializeIn(QDataStream &in)
{
    Unit::serializeIn(in);
}

void FixedUnit::serializeOut(QDataStream &out)
{
    Unit::serializeOut(out);
}
